home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 102 / Computer Shopper 102 / Computer SHOPPER_102.iso / multimed.ia / wilddemo / dew / lso / main.dss < prev    next >
Encoding:
Text File  |  1995-08-21  |  11.9 KB  |  449 lines

  1. set subdir=main
  2. set dll=$dew_main.dll
  3. set fps=7
  4. set travelfps=20
  5. set travelpoints=20
  6. set delays=500,50,250
  7. set msgtime=4000
  8. set savearea=160
  9. set pzlfontcolor=0,0,0
  10. set vcClueColor=255,255,0
  11. set vcMsgColor=0,255,255
  12. set fontFudge=100,97
  13. set gameExtraTime=20 ; % extra time for add'l tries for games
  14. set gameTries=3 ; after which the game is assumed done
  15. set ButtonDisableTime=3000,4000,5000,6000,7000,8000,9000,10000,11000,12000 ; up to 10 values in milliseconds
  16. ;----------------------------------
  17. ; START STUFF FOR BELOW
  18. VAR BTNFILE=1000
  19.  
  20. text x_capmain=Endangered Wildlife
  21. caption cap_main=x_capmain
  22. text x_caphome=Endangered Wildlife - Main Menu
  23. caption cap_home=x_caphome
  24. text x_capgame=Endangered Wildlife - Game [%p]
  25. caption cap_game=x_capgame
  26. text x_captour=Endangered Wildlife - Tour
  27. caption cap_tour=x_captour
  28.  
  29. ;--- Variables
  30. var null=0
  31. var width=624
  32. var height=464
  33. var gheight=416
  34. var black=0
  35. var white=1
  36. var yellow=10
  37. var red=11
  38. var blue=12
  39. var green=13
  40. var gray=14
  41. var dkgray=15
  42. var pink=16
  43. var ltblue=17
  44. var lavender=18
  45. var ds_wb=257
  46. var ds_yb=266
  47. var ds_rb=267
  48. var ds_bb=268
  49. var ds_gb=269
  50. var ds_pb=272
  51. var ds_lbb=273
  52. var ds_dgb=271  ; dark gray/black
  53. var ds_lavb=274
  54. xref tfc=ds_yb  ; tictactoe font color
  55. var ff_swiss=32
  56. var ff_roman=16
  57. var ff_dec=80
  58.  
  59. ;--- Post commands (for buttons)
  60. command bailout=2    ;delete if not used
  61. command next=1
  62. command exitscreen=1
  63. command previous=80
  64. command finished=1573
  65. command exit=1308
  66. command exitgroup_ok=798   ;use for exiting groups - ie Maps
  67. command backout2=800  ;returns 1
  68. command backout3=801
  69. command backout4=802
  70. ;var dirtoggle=s_lhelp     ;Temp fix for help sys
  71. command giveup=0
  72. command idCancel=0        ; (Used this DSS only)
  73. command idOK=1
  74. command loginDb=500
  75. command optionsDb=501
  76. command SavePlayerInfo=502
  77. command StartVideo=350
  78. command StopVideo=351
  79. command do_PgUp=201
  80. command do_PgDn=202
  81. command kill_mem=409
  82. command WaitForMM=495
  83. command BeginGame=497
  84. command ClearMidi=611,1          ; Send
  85. command LoadQT=620,1             ; Send
  86. command LoadQT2=620
  87. command UnloadQT=621,1           ; Send
  88. command FlushCache=630,1         ; Send
  89. command NoCollageRepaint=950,1   ; Send
  90. ; button disablers
  91. command DisableBtn3=640,1   ; Place in DO portion of screen group
  92. command DisableBtnGame=649,1
  93.  
  94. ;--- Effects
  95. effect _effect=0   ;default
  96. effect e_tb=1
  97. effect e_bt=2
  98. effect e_lr=3
  99. effect e_rl=4
  100. effect e_hi=5
  101. effect e_ho=6
  102. effect e_vi=7
  103. effect e_vo=8
  104. effect e_hb=9
  105. effect e_vb=10
  106. effect e_co=11
  107. effect e_stb=12
  108. effect e_sbt=13
  109. effect e_slr=14
  110. effect e_srl=15
  111. effect e_rr=36
  112. effect e_star=83
  113.  
  114. ;--- MCI
  115. mci openmidi=open sequencer
  116. mci openwave=open waveaudio
  117. mci stopmidi=close sequencer
  118. mci closemidi=close sequencer
  119. mci closeall=close all
  120.  
  121. ;--- MIDI (format i.e.) name=$ext.mid,$basic.mid
  122. midi Intro_midi=$Intro.mid
  123. midi Main_midi=$Lee.mid
  124. midi m_blank=$Blank.mid
  125. midi m_game1=$Lee.mid
  126. midi m_game2=$Lee.mid
  127. midi m_bak01=$Lee.mid
  128. midi m_bak02=$Lee.mid
  129. midi m_afr1=$afri1.mid
  130. midi m_afr2=$afri2.mid
  131. midi m_afr3=$afri3.mid
  132. midi m_car1=$car01.mid
  133. midi m_car2=$car02.mid
  134. midi m_car3=$car03.mid
  135.  
  136. ;--- WAVE
  137. wave3 _findthreat=$find_thr.wav
  138. wave3 w_timesup=$sorry.wav
  139. wave3 w_crash=$crash.wav
  140. wave3 w_wawa=$sorry.wav
  141. wave3 w_done=$gamedone.wav  ;replace
  142. wave3 w_snap=$camera.wav    ;update?
  143. wave3 w_fact=$gamedone.wav  ;replace
  144.  
  145. ;--- Rectangle regions
  146. rect rfull=0,0,width,height
  147. rect rgame=0,0,width,gheight
  148. rect rGameBar=0,411,width,52
  149. rect rGbMsg=93,410,402,55
  150. rect rGbMsgboxtxt=93,8,402,60
  151. rect rGtb=0,335,0,0
  152. rect rmovie=192,142,0,0
  153. rect rScale=17,151,391,298
  154. rect rSclRtTop=424,150,175,80  ;424 is the left edge of Scl Buttons
  155. rect rSclRtMid=424,240,175,80  ;buttons are 78 tall
  156. rect rSclRtBot=424,330,175,80
  157. rect rtr=360,0,280,430
  158. rect rbr=360,280,280,200
  159. rect rtl=10,0,300,430
  160. rect rbl=10,280,300,430
  161. rect rleft=20,10,300,400
  162. rect rright=20,280,300,390
  163. rect rtopctr=30,30,560,200
  164. rect rctr=40,150,550,260
  165. rect rbotctr=30,250,560,200
  166. rect rbook=80,85,170,280
  167. rect rwfnd=77,76,453,277
  168. rect rlaw=118,128,380,275
  169. rect rmaptext=39,350,540,85
  170. rect rpictext=39,354,538,75
  171. rect rpictext5=39,327,538,109
  172. rect rVpic=39,74,231,307
  173. rect rtictxt=77,76,453,277
  174. rect rDYK01=95,330,410,105
  175. rect rWOW01=80,300,430,120
  176. rect rwho=270,305,340,50
  177. rect rTpic=356,16,259,170
  178. rect rtopline=10,5,width,150
  179. rect rtoptitle=50,30,500,150
  180. rect rThrTxt=40,225,530,190
  181. rect rSol1Txt=70,70,485,300
  182. rect rSol2Txt=72,62,497,292
  183. rect rSol3Txt=85,50,465,310
  184. rect rFact=0,0,530,270
  185. rect rFactTxt=30,50,455,160
  186. rect rcon=120,165,380,235
  187. rect r0=0,0,0,0
  188. rect rTourPgUp=573,224,23,35  ;For Tour buttons
  189. rect rTourPgDn=573,381,23,35
  190.  
  191. ;---Font Setup
  192. font font13=Discovery  Bold,13,400,ff_dec,90    ;90% leading
  193. font font14=Discovery  Bold,14,400,ff_dec,95    ;95% leading
  194. font font15=Discovery  Bold,15,400,ff_dec,95    ;95% leading
  195. font font15a=Discovery  Bold,15,400,ff_dec,90    ;90% leading
  196. font font17=Discovery  Bold,17,400,ff_dec,95    ;95% leading
  197. font pzlfont=Discovery  Bold,20,400,ff_dec
  198. font font18=Discovery  Bold,18,400,ff_dec,90    ;90% leading
  199. font font19=Discovery  Bold,19,400,ff_dec,90
  200. font font20=Discovery  Bold,20,400,ff_dec,95    ;95% leading
  201. font font22=Discovery  Bold,22,400,ff_dec,95    ;95% leading
  202. font font25=Discovery  Bold,25,400,ff_dec
  203. font font30=Discovery  Bold,30,400,ff_dec
  204. font font40=Discovery  Bold,40,400,ff_dec
  205. XREF mapfont=font19
  206. XREF tourfont=font20
  207. XREF fonttSnd=font22
  208. XREF fontThr=font22
  209. XREF fontSol=font22
  210. XREF fontScl=font18
  211.  
  212. ; Button Definition
  213. ; Arrows
  214. var ah=27
  215. var aw=54
  216. var a3=108
  217. var a4=162
  218. ; Buttons
  219. var bh=35
  220. var bw=112
  221. var b3=224
  222. var b4=336
  223.  
  224. ;--- Standard buttons
  225. var btnX=420
  226. var btnBotY3=425
  227.  
  228. rect rbtn_l=10,btnX,0,0
  229. rect rbtn_c=256,btnX,0,0
  230. rect rbtn_r=-10,btnX,0,0
  231. rect rbtn_rbar=-10,8,0,0
  232. rect rbtn_c2=256,429,0,0
  233. rect rbtn_c3=256,426,0,0
  234. rect rbtn_ct=-22,425,0,0    ; threat cont moved to right side
  235. rect rbtn_scl=-24,425,0,0    ; scale button
  236. rect rbtn_f=209,-10,0,0
  237. rect rbtn_n=209,-10,0,0
  238. rect rbtn_md=245,437,135,27 ;done
  239. rect rprevMap=169,437,54,27 ;left arrow
  240. rect rnextMap=402,437,54,27 ;right arrow
  241. rect rbtn_hml=159,429,0,0
  242. rect rbtn_wmr=354,429,0,0
  243.  
  244. var gb1=0
  245. var gb2=35
  246. var gb3=70
  247. var gb4=105
  248. var gb5=140
  249. var gb6=175
  250.  
  251. var brw=gb1
  252. ;Continue
  253. bitmap bCtup=BtnFile,0,brw,bw,bh
  254. bitmap bCtdn=BtnFile,bw,brw,bw,bh
  255. button b_Cont=rbtn_r,bCtup,bCtdn,next
  256. button b_Cont_rbar=rbtn_rbar,bCtup,bCtdn,next
  257. button b_Cont_c=rbtn_c,bCtup,bCtdn,next
  258. button b_ContRvw_c=rbtn_c,bCtup,bCtdn,next
  259. button b_Contend_c=rbtn_c,bCtup,bCtdn,next
  260. button b_Cont_c2=rbtn_c2,bCtup,bCtdn,next
  261. button b_Cont_ct=rbtn_ct,bCtup,bCtdn,next   ;is this used?
  262. button b_Cont_scl=rbtn_scl,bCtup,bCtdn,next
  263. button b_Cont_f=rbtn_f,bCtup,bCtdn,next
  264. button b_Cont_n=rbtn_n,bCtup,bCtdn,next
  265. button b_ContTour=rbtn_c3,bCtup,bCtdn,next
  266. ; GiveUp -> GoBack (Here in spirit only)
  267. bitmap bgup=BtnFile,b3,brw,bw,bh
  268. bitmap bgdn=BtnFile,b4,brw,bw,bh
  269. button b_Give=rbtn_r,bgup,bgdn,bailout
  270. ; GoBack
  271. bitmap bgbup=BtnFile,b3,brw,bw,bh
  272. bitmap bgbdn=BtnFile,b4,brw,bw,bh
  273. button b_GoBack=rbtn_l,bgbup,bgbdn,bailout
  274. button b_GoBack_r=rbtn_r,bgbup,bgbdn,bailout
  275. button b_GoBack_c=rbtn_c,bgbup,bgbdn,bailout
  276.  
  277. var brw=gb2
  278. ; Sound
  279. bitmap bsndup=BtnFile,0,brw,bw,bh
  280. bitmap bsnddn=BtnFile,bw,brw,bw,bh
  281. ; Video
  282. bitmap bvidup=BtnFile,0,brw,bw,bh
  283. bitmap bviddn=BtnFile,bw,brw,bw,bh
  284. button b_mov=rbtn_c,bvidup,bviddn,StartVideo  ;Delete mov1&2 from pzls then delete next 2 lines
  285. button b_mov1=rbtn_c,bvidup,bviddn,StartVideo
  286. button b_mov2=rbtn_c,bvidup,bviddn,StartVideo
  287. button b_mov_r=rbtn_r,bvidup,bviddn,StartVideo
  288.  
  289. ; Options
  290. bitmap optup=BtnFile,b3,brw,bw,bh
  291. bitmap optdn=BtnFile,b4,brw,bw,bh
  292. button b_optb=rbtn_l,optup,optdn,OptionsDb
  293.  
  294. var brw=gb3
  295. ; Main Menu
  296. bitmap menuup=BtnFile,0,brw,bw,bh
  297. bitmap menudn=BtnFile,bw,brw,bw,bh
  298. button b_menub=rbtn_r,menuup,menudn,exitgroup_ok
  299. button b_menu_c2=rbtn_c2,menuup,menudn,previous
  300. button b_tourhome=rbtn_hml,menuup,menudn,backout2
  301. button b_gamemain=rbtn_r,menuup,menudn,exitgroup_ok
  302. ; Tutorial
  303. bitmap tutup=BtnFile,b3,brw,bw,bh
  304. bitmap tutdn=BtnFile,b4,brw,bw,bh
  305.  
  306. var brw=gb4
  307. ; Small Arrow Up
  308. bitmap bPgUPup=BtnFile,0,brw,23,35
  309. bitmap bPgUPdn=BtnFile,23,brw,23,35
  310. button b_TourPgUp=rTourPgUp,bPgUPup,bPgUPdn,do_PgUp
  311. ; Small Arrow Down
  312. bitmap bPgDNup=BtnFile,46,brw,23,35
  313. bitmap bPgDNdn=BtnFile,69,brw,23,35
  314. button b_TourPgDn=rTourPgDn,bPgDNup,bPgDNdn,do_PgDn
  315. ; Small Arrow Foreward
  316. bitmap bsaFup=BtnFile,92,brw,aw,ah
  317. bitmap bsaFdn=BtnFile,146,brw,aw,ah
  318. button b_nextMap=rnextMap,bsaFup,bsaFdn,next
  319. ; World Map
  320. bitmap wmapup=BtnFile,b3,brw,bw,bh
  321. bitmap wmapdn=BtnFile,b4,brw,bw,bh
  322. button b_tourwmap=rbtn_wmr,wmapup,wmapdn,previous
  323.  
  324. var brw=gb5
  325. ; Small Arrow Backward
  326. bitmap bsaRup=BtnFile,0,brw,aw,ah
  327. bitmap bsaRdn=BtnFile,aw,brw,aw,ah
  328. button b_prevMap=rprevMap,bsaRup,bsaRdn,previous
  329. ; Map Done Button
  330. bitmap bmdup=BtnFile,108,brw,135,ah
  331. bitmap bmddn=BtnFile,243,brw,135,ah
  332. button b_MapDone=rbtn_md,bmdup,bmddn,exitgroup_ok
  333.  
  334. ;Credits
  335. rect rTcbut=356,429,112,30
  336. rect rBcbut=483,429,112,30
  337. bitmap b_cdoneup=3010,0,0,112,30
  338. bitmap b_cdonedn=3010,112,0,112,30
  339. button b_cdone=rBcbut,b_cdoneup,b_cdonedn,exitgroup_ok
  340. bitmap b_ccredup=3010,0,30,112,30
  341. bitmap b_ccreddn=3010,112,30,112,30
  342. button b_ccred=rTcbut,b_ccredup,b_ccreddn,previous
  343. bitmap b_ccopyup=3010,0,60,112,30
  344. bitmap b_ccopydn=3010,112,60,112,30
  345. button b_ccopy=rTcbut,b_ccopyup,b_ccopydn,next
  346.  
  347. ;Groups of buttons
  348. group bg_tour2=b_tourhome,b_tourwmap
  349. group bg_mapbutts=b_MapDone
  350. group bg_mapbuttsf=b_MapDone,b_nextMap           ;first
  351. group bg_mapbuttsm=b_prevMap,b_MapDone,b_nextMap ;middle
  352. group bg_mapbuttsl=b_prevMap,b_MapDone           ;last
  353.  
  354.  
  355. ;
  356. ; END STUFF FOR BELOW
  357. ;----------------------------------
  358.  
  359. ;- button defs
  360. ; MAIN MENU
  361. bitmap b_gameU=2002,0,0,244,51
  362. bitmap b_gameD=2002,0,51,244,51
  363. bitmap b_tourU=2002,244,0,244,51
  364. bitmap b_tourD=2002,244,51,244,51
  365. bitmap b_exitU=2002,488,0,91,45
  366. bitmap b_exitD=2002,488,45,91,45
  367.  
  368. BITMAP bmpMain=2001
  369. ;;BITMAP bmp_Intro=2003
  370.  
  371. script tour_dss=$tour.dss
  372. script game_dss=$game.dss
  373. ;--------------------------
  374. ;--- Help Stuff
  375. picture p_gray=rfull,3075
  376. include creditxt=$inc\lhelp.inc
  377. screen s_lhelp=rfull,(p_gray,gst_lhelp,b_cont_c)
  378.  
  379. ;--- Credits
  380. picture p_credit=rfull,3000
  381. bitmap bmp_mmlogo=3005
  382. bitmap bmp_qtmlogo=3007
  383. include creditxt=$inc\credits.inc
  384. screen s_credits=rfull,(p_credit,gst_credits,b_ccopy,b_cdone)
  385. screen s_copyrights=rfull,(p_credit,gst_copyrights,b_ccred,b_cdone)
  386. group g_credits=s_credits,s_copyrights
  387. rect rmoon=550,88,55,58
  388. button b_moon=rmoon,0,0,g_credits
  389.  
  390. rect rb1=23,348,244,51
  391. rect rb2=356,348,244,51
  392. rect rb3=266,407,91,45
  393.  
  394. button bGame=rb1,b_gameU,b_gameD,game_dss
  395. button bTour=rb2,b_tourU,b_tourD,tour_dss
  396. button bExit=rb3,b_exitU,b_exitD,exitScreen
  397.  
  398. picture p_MainMenu=rFull,bmpMain
  399. screen s_main1=rfull,(p_MainMenu,bTour,bGame,bExit,b_moon),(cap_home,clearmidi,main_midi)
  400.  
  401. ;TIMERS NEEDED FOR INTRO
  402. timer quick=0,3,0,1
  403. timer quicker=0,1,0,1
  404. timer midistart=0,1,0,1
  405.  
  406. include intro=$inc\intro.inc
  407. group _main=intro_midi,midistart,g_intro,s_main1
  408.  
  409. ; after tutorial
  410. group _aftertut=LoadQT2
  411.  
  412. ;;;group _main=s_main1
  413.  
  414. msg msg_timesup="OUT OF TIME!",2000
  415. group g_timesup=msg_timesup,w_timesup
  416.  
  417. ;--- VueClue hint
  418. msg msg_vcHint="Find the tile(s) that looks like this one...",2000
  419. wave wv_vcHint=$vchint.wav
  420. group _vcHint=msg_vcHint,wv_vcHint
  421. ;
  422. ;--- Timers
  423. ;FORMAT: name=rect,secs,execWhenExpired,returnCode
  424. rect rtimer=10,-10,80,30
  425. ;
  426. timer tmr_gameend=0,5,0,1
  427. timer vquick=rtimer,25,,0
  428. timer vfast=rtimer,30,,0
  429. timer vtimeT=rtimer,30,,0
  430. timer vtimeS3=rtimer,90,,0
  431. timer vtimeS4=rtimer,120,,0
  432. timer vtimeJ43=rtimer,150,,0
  433. timer vtimeJ54=rtimer,180,,0
  434. timer vtimeW=rtimer,120,,0
  435. timer vtimeW120=rtimer,150,,0
  436. timer vtime1=rtimer,60,,0
  437. timer vtime2=rtimer,120,,0
  438. timer vtime3=rtimer,180,,0
  439. timer vtime5=rtimer,300,,0
  440. timer timeloading=0,20,0,1
  441. timer tmr_scr=rtimer,5,0,1
  442. timer tmr_jig=rtimer,4,0,1
  443. timer tmr_mov=0,2,0,1
  444. timer time3=0,180
  445. timer time5=0,300
  446. ;
  447. XREF _PALETTE=bmpMain
  448. ;E-O-F
  449.